solving half life problem using logs